﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace JeanFish.Blog
{

    public abstract class BlogBase : ModelBase
    {
        protected string _name = Resources.DefaultBlogName;
        protected string _onwer = Resources.DefaultUserName;

        protected BlogBase Clone()
        {
            return this.MemberwiseClone() as BlogBase;
        }

        protected void Copy(BlogBase blog)
        {
            using (var cloned = blog.Clone())
            {
                this._id = cloned._id;
                this._name = cloned._name;
                this._onwer = cloned._onwer;
            }
        }
    }
}